export class CommonUnit {
    static isPascalCase(input: string): boolean {
        if (!input) {
            return false;
        }

        let firstChar = input[0];
        let ret = /[A-Z]/.test(firstChar);
        return ret;
    }

    static isWordChar(char: string, isFirstChar = false) {
        if (isFirstChar) {
            return /[A-Z|a-z|_]/.test(char);
        } else {
            return /[A-Z|a-z|_|0-9]/.test(char);
        }
    }
}